import request from '@/utils/request'

let discountApi = {
 
  activeList(data, errorback) {
    return request._post('/shop/plus.discount.Active/index', data, errorback);
  },
  
  addActive(data, errorback) {
    return request._post('/shop/plus.discount.Active/add', data, errorback);
  },
  
  getActive(data, errorback) {
    return request._get('/shop/plus.discount.Active/edit', data, errorback);
  },

  saveActive(data, errorback) {
    return request._post('/shop/plus.discount.Active/edit', data, errorback);
  },

  delActive(data, errorback) {
    return request._post('/shop/plus.discount.Active/delete', data, errorback);
  },
  
  seeActive(data, errorback) {
    return request._post('/shop/plus.discount.Active/see', data, errorback);
  },

 
  addProduct(data, errorback) {
    return request._post('/shop/plus.discount.Product/add', data, errorback);
  },
  
  selectProduct(data, errorback) {
    return request._post('/shop/plus.discount.Product/selectProduct', data, errorback);
  },

  detail(data, errorback) {
    return request._post('/shop/plus.discount.Product/detail', data, errorback);
  },
  
  saveData(data, errorback) {
    return request._post('/shop/plus.discount.Product/saveData', data, errorback);
  },
  delProduct(data, errorback) {
    return request._post('/shop/plus.discount.Product/delete', data, errorback);
  },

 
  saveSetting(data, errorback) {
    return request._post('/shop/plus.discount.Setting/index', data, errorback);
  },

  
  getSetting(data, errorback) {
    return request._get('/shop/plus.discount.Setting/index', data, errorback);
  },

    getDiySkill(data, errorback) {
    return request._post('/shop/plus.discount.Active/getDiyProduct', data, errorback);
},
  /* 获取审核列表 */
	postSkilladuit(data,errorback){
	 return request._post('/shop/plus.discount.Product/index', data, errorback);
	},
  /* 获取审核详情*/
  getSkilledit(data,errorback){
   return request._get('/shop/plus.discount.Product/edit', data, errorback);
  },
  /* 提交审核状态*/
  postSkilledit(data,errorback){
   return request._post('/shop/plus.discount.Product/edit', data, errorback);
  },
  /* 上下架*/
  stateSet(data,errorback){
   return request._post('/shop/plus.discount.Product/state', data, errorback);
  }
}
export default discountApi;
